#ifndef __ACCEPTSOCKET_H__
#define __ACCEPTSOCKET_H__

#include <Winsock2.h>
#include "IoMsg.h"

class CAcceptSocket
{
public:
	CAcceptSocket(SOCKET h);
	~CAcceptSocket(void);

	int handle_excpet(CIoMsg* pMsg, int nTransferNumber);

	int handle_msg(CIoMsg* pMsg, int nTransferNumber);

	int hand_send(CIoMsg* pMsg, int nTransferNumber);

	int hand_recv(CIoMsg* pMsg, int nTransferNumber);

	int head_accept();

	int send_msg();


private:

	SOCKET m_hSocket;
};

#endif